<?php
/**
 * 
 * Enter description here ...
 * @author michael
 *
 */
class Shop_Product_CD extends Shop_Product{
	private $playLength=0;
	function __construct($title,$mainName,$firstName, $price,$playLength)
	{
		parent::__construct($title,$mainName,
								$firstName,$price=0);
		$this->playLength = $playLength;	
	}
	/**
	 * 
	 * This method gets the play length of the cd
	 */
	
	function getPlayLength(){
		return $this->playLength;	
	}
	function getSummaryLine(){
		$base = "{$this->title} ( {$this->producerMainName}, ";
		$base .= "{$this->producerFirstName} )";
		$base .= ": page count - {$this->playLength}";
		return $base;
		
	}
}